import { createRouter, createWebHistory } from 'vue-router'

const routes = [
    {
        path: '/',
        redirect: '/home'
    },
    {
        path: '/problem',
        name: 'problem',
        component: ()=> import("../../components/LearnWordProblem.vue")
    },
    {
        path: '/home',
        name: 'home',
        component: ()=> import("../../components/LearnWordHome.vue")
    },
    {
        path: '/word',
        name: 'word',
        component: ()=> import("../../components/LearnWordWord.vue")
    },
    {
        path: '/login',
        name: 'login',
        component: ()=> import("../../components/LearnWordLogin.vue")
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router